#ifndef SET_H
#define SET_H

struct Set
{
	Set() : rank(0), parent(0) {}

	int rank;
	Set *parent;
};

Set *makeSet();
Set *findParent(Set *node);
void unionSets(Set *n1, Set *n2);

#endif
